<!doctype html>
<html xmlns:th="https://www.thymeleaf.org">

<head>
    <title>SAMS | 学生入住</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description"
          content="Qubes Bootstrap 4x admin is super flexible, powerful, clean &amp; modern responsive admin dashboard with unlimited possibilities.">
    <meta name="author" content="GetBootstrap, design by: puffintheme.com">

    <link rel="icon" th:href="@{/favicon.ico}" type="image/x-icon">
    <!-- VENDOR CSS -->
    <link rel="stylesheet" th:href="@{/vendor/bootstrap/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/vendor/font-awesome/css/font-awesome.min.css}">
    <link rel="stylesheet" th:href="@{/vendor/animate-css/vivify.min.css}">

    <link rel="stylesheet" th:href="@{/vendor/jquery-datatable/dataTables.bootstrap4.min.css}">
    <!-- MAIN CSS -->
    <link rel="stylesheet" th:href="@{/css/site.min.css}">

</head>

<body class="theme-blue"></body>

<!--&lt;!&ndash; Page Loader &ndash;&gt;-->
<!--<div class="page-loader-wrapper">-->
<!--    <div class="loader">-->
<!--        <div class="m-t-30"><i class="fa fa-cube font-25"></i></div>-->
<!--        <p>正在加载, 请稍等...</p>-->
<!--    </div>-->
<!--</div>-->

<!-- Overlay For Sidebars -->
<div class="overlay"></div>

<div id="wrapper">
    <!-- 顶部栏 -->
    <nav class="navbar navbar-fixed-top">
        <!-- 顶部栏容器 -->
        <div class="container-fluid">
            <!-- 左顶部栏 -->
            <div class="navbar-left">
                <div class="navbar-brand">
                    <a class="small_menu_btn" href="javascript:void(0);"><i class="fa fa-align-left"></i></a>
                    <a th:href="@{index.html}"><span>SAMS</span></a>
                </div>
            </div>

            <!-- 右顶部栏 -->
            <div class="navbar-right">
                <div id="navbar-menu">
                    <ul class="nav navbar-nav">
                        <li class="dropdown">
                        <li><a href="page-login.html" class="icon-menu"><i class="fa fa-power-off"></i></a></li>
                    </ul>
                </div>
            </div>
        </div>
    </nav>

    <!-- 左边栏 -->
    <div id="left-sidebar" class="sidebar">
        <div class="sidebar_list">
            <div class="tab-content" id="main-menu">
                <div class="tab-pane active" id="Home-icon">
                    <nav class="sidebar-nav sidebar-scroll">
                        <ul class="metismenu">
                            <li><a th:href="@{/index.html}"><i class="icon-speedometer"></i><span>主面板</span></a></li>
                            <li class="header">用户功能</li>
                            <li>
                                <a href="#Pages" class="has-arrow"><i class="icon-lock"></i><span>综合查询</span></a>
                                <ul>
                                    <li><a th:href="@{/quireStudentByDepartmentId.html}"><i class="icon-paper-plane"></i><span>按楼查看</span></a></li>
                                    <li><a th:href="@{/studentList.html}"><i class="icon-paper-plane"></i><span>按学院查看</span></a></li>
                                    <li><a th:href="@{/studentList.html}"><i class="icon-paper-plane"></i><span>按班级查看</span></a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#Pages" class="has-arrow"><i class="icon-lock"></i><span>日常调换宿</span></a>
                                <ul>
                                    <li><a th:href="@{/updateStudent.html}"><i class="icon-paper-plane"></i><span>入住</span></a></li>
                                    <li><a th:href="@{/updateStudent.html}"><i class="icon-paper-plane"></i><span>调宿</span></a></li>
                                    <li><a th:href="@{/templates/updateStudentExchange.html}"><i class="icon-paper-plane"></i><span>换宿</span></a></li>
                                    <li><a th:href="@{/studentList.html}"><i class="icon-paper-plane"></i><span>退宿</span></a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#Pages" class="has-arrow"><i class="icon-lock"></i><span>毕业退宿管理</span></a>
                                <ul>
                                    <li class="active"><a th:href="@{/updateStudent.html}"><i class="icon-paper-plane"></i><span>毕业退宿</span></a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#Pages" class="has-arrow"><i class="icon-lock"></i><span>新生入住管理</span></a>
                                <ul>
                                    <li><a th:href="@{/addStudent.html}"><i class="icon-paper-plane"></i><span>新生入住</span></a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#Pages" class="has-arrow"><i class="icon-lock"></i><span>日常登记</span></a>
                                <ul>
                                    <li><a th:href="@{/record/loadAddRecordPage}"><i class="icon-paper-plane"></i><span>日常登记</span></a></li>
                                    <li><a th:href="@{/record/quireRecord}"><i class="icon-paper-plane"></i><span>日常登记查询</span></a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#Pages" class="has-arrow"><i class="icon-lock"></i><span>访客登记</span></a>
                                <ul>
                                    <li><a th:href="@{/addVisitorStudent.html}"><i class="icon-paper-plane"></i><span>访问学生</span></a></li>
                                    <li><a th:href="@{/updateVisitorStudentEndTimeAndStatus.html}"><i class="icon-paper-plane"></i><span>访问学生结束</span></a></li>
                                    <li><a th:href="@{/addVisitorDormitory.html}"><i class="icon-paper-plane"></i><span>访问寝室</span></a></li>
                                    <li><a th:href="@{/updateVisitorDormitoryEndTimeAndStatus.html}"><i class="icon-paper-plane"></i><span>访问寝室结束</span></a></li>
                                    <li><a th:href="@{/visitor/loadVisitorStudent}"><i class="icon-paper-plane"></i><span>访问学生记录查询</span></a></li>
                                    <li><a th:href="@{/visitor/loadVisitorDormitory}"><i class="icon-paper-plane"></i><span>访问寝室记录查询</span></a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="#Pages" class="has-arrow"><i class="icon-lock"></i><span>宿舍维修</span></a>
                                <ul>
                                    <li><a th:href="@{/repair/loadAddRepairPage}"><i class="icon-paper-plane"></i><span>添加维修请求</span></a></li>
                                    <li><a th:href="@{/updateRepairStartTime.html}"><i class="icon-paper-plane"></i><span>维修开始登记</span></a></li>
                                    <li><a th:href="@{/updateRepairEndTime.html}"><i class="icon-paper-plane"></i><span>维修结束登记</span></a></li>
                                    <li><a th:href="@{/repair/loadRepair}"><i class="icon-paper-plane"></i><span>维修记录查询</span></a></li>
                                </ul>
                            </li>
                        </ul>
                    </nav>
                </div>
            </div>
        </div>
    </div>

    <!-- 主页面部分 -->
    <div id="main-content">
        <!-- 主页面顶部 -->
        <div class="block-header">
            <div class="row clearfix">
                <!-- 页面导航说明 -->
                <div class="col-md-6 col-sm-12">
                    <h2>学生入住</h2>
                    <nav aria-label="breadcrumb">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="#"><i class="fa fa-cube"></i></a></li>
                            <li class="breadcrumb-item"><a th:href="@{index.html}">SAMS</a></li>
                            <li class="breadcrumb-item active" aria-current="page">学生入住</li>
                        </ol>
                    </nav>
                </div>
            </div>
        </div>

        <!-- 主页面主体部分 -->
        <div class="container-fluid">
            <div class="row clearfix">

                <!-- 输入学号查询学生信息 -->
                <div class="card">
                    <div class="header">
                        <h2>学生信息查询</h2>
                    </div>
                    <div class="body">
                        <form id="basic-form" method="get" th:action="@{/student/findByStudentId}" novalidate>
                            <div class="form-group">
                                <label>学号</label>
                                <input type="text" class="form-control" id="studentId" name="studentId" required>
                            </div>
                            <br>
                            <button type="submit" class="btn btn-primary">查询</button>
                        </form>
                    </div>
                </div>

                <div class="card">
                    <!-- 展示学生详细信息的表格 -->
                    <div class="row clearfix">
                        <div class="col-md-12">
                            <div class="table-responsive">
                                <table class="table table-hover table-custom spacing5 mb-3">
                                    <thead>
                                    <tr>
                                        <th class="hidden-sm-down text-center" style="width: 120px;">条目</th>
                                        <th class="hidden-sm-down text-center" style="width: 120px;">数据</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td class="hidden-sm-down text-center">学号</td>
                                        <td class="hidden-sm-down text-center" th:text="${student.studentId}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">姓名</td>
                                        <td class="hidden-sm-down text-center" th:text="${student.name}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">性别</td>
                                        <td class="hidden-sm-down text-center" th:text="${student.sex}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">班级</td>
                                        <td class="hidden-sm-down text-center" th:text="${student.studentClass}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">学院</td>
                                        <td class="hidden-sm-down text-center" th:text="${student.college}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">校区</td>
                                        <td class="hidden-sm-down text-center" th:text="${student.campus}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">公寓楼号</td>
                                        <td class="hidden-sm-down text-center" th:text="${student.departmentNumber}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">寝室号</td>
                                        <td class="hidden-sm-down text-center" th:text="${student.dormitoryNumber}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">床位号</td>
                                        <td class="hidden-sm-down text-center" th:text="${student.bedNumber}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">电话号码</td>
                                        <td class="hidden-sm-down text-center" th:text="${student.telephoneNumber}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">邮箱</td>
                                        <td class="hidden-sm-down text-center" th:text="${student.email}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">入住日期</td>
                                        <td class="hidden-sm-down text-center" th:text="${#dates.format(student.checkInDate,'yyyy-MM-dd')}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">入住状态</td>
                                        <td class="hidden-sm-down text-center" th:text="${student.bedStatus}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">学籍状态</td>
                                        <td class="hidden-sm-down text-center" th:text="${student.stuStatus}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">登记时间</td>
                                        <td class="hidden-sm-down text-center" th:text="${#dates.format(student.recordTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                                    </tr>
                                    <tr>
                                        <td class="hidden-sm-down text-center">操作</td>
                                        <td class="hidden-sm-down text-center">
                                            <a th:href="@{/student/findByStudentId(studentId=${student.studentId})}">办理入住</a>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>


<!-- Javascript -->
<!-- Latest jQuery -->
<script th:src="@{/vendor/jquery/jquery-3.3.1.min.js}"></script>

<!-- Bootstrap 4x JS  -->
<script th:src="@{/vendor/bootstrap/js/bootstrap.bundle.min.js}"></script>

<script th:src="@{/bundles/vendorscripts.bundle.js}"></script>

<script th:src="@{/bundles/datatablescripts.bundle.js}"></script>

<script th:src="@{/js/common.js}"></script>
<script th:src="@{/js/pages/tables/invoice.js}"></script>
</body>

</html>


